package com.emser.unc.client.event;

import com.emser.unc.client.service.ProductServiceAsync;
import com.google.gwt.event.shared.GwtEvent;

public class AddProductEvent extends GwtEvent<AddProductEventHandler>{
	public static Type<AddProductEventHandler> TYPE = new Type<AddProductEventHandler>();
	private ProductServiceAsync rpcServiceProduct;
	public AddProductEvent(ProductServiceAsync rpcServiceProduct){
		this.rpcServiceProduct =rpcServiceProduct;
		
	}
	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<AddProductEventHandler> getAssociatedType() {
		return TYPE;
	}
	@Override
	protected void dispatch(AddProductEventHandler handler) {
		handler.onAdd(this);
		
	}
	public ProductServiceAsync getRPCserviceSeller(){
		return rpcServiceProduct;	
	}

}
